import { fetch, post, put } from './axios'


export const Login = (params) => {
  return post(`/user/login`, params).then(
    (res) => res
  )
}

export const PassCheck = (params) => {
  return post(`/user/pass`, params).then(
    (res) => res
  )
}

export const GetGroups = () => {
  return fetch(`/dic/words?parentCode=1000`).then(
    (res) => res
  )
}

export const GetCurrent = () => {
  return fetch(`/user/current`).then(
    (res) => res
  )
}

export const GetLists = (params) => {
  return fetch(
    `/question/paper`,
    params
  ).then((res) => res)
}

export const updateMsgListApi = (params) => {
  return put(`/authority-center/studentNotification/updateBy`, params).then(
    (res) => res
  )
}